package components.ship;

import images.Images;

import com.uqbar.vainilla.appearances.Appearance;

import components.asteroids.Asteroid;

public class ShipPlaying extends ShipState {

	
	public ShipPlaying(Ship ship){
		super(ship);
		ship.setAppearance(getShipAppearance());
	}
	@Override
	public void collideWithAsteroid(Asteroid asteroid) {
		this.getShip().shipDestroyed();
	}

	@Override
	public void protectionTime(double delta) {
		
	}
	
	@Override
	public Appearance getShipAppearance() {
		return Images.images.getImage("ship").rotate(Math.toRadians(this.getShip().getAngle() - 90));
	}


}
